<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Coupon extends Model
{
    use HasFactory;
    protected $dateFormat='U';
    protected $table='coupon';
    protected $guarded=[];
    public $timestamps=false;

    public function getStartTimeAttribute($value)
    {
        return date('Y-m-d H:i',$value);
    }

    public function getEndTimeAttribute($value)
    {
        return date('Y-m-d H:i',$value);
    }


}
